<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSildersTable extends Migration
{
    //提交
    public function up()
    {
        Schema::create('silders', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->string('title')->comment('标题');

            $table->string('url')->comment('跳转地址');
            $table->string('images')->comment('缩略图');
            $table->tinyInteger('is_show')->default(1)->comment('是否显示|radio|1:是,2:否');
        });
    }

    //回滚
    public function down()
    {
        Schema::dropIfExists('silders');
    }
}
